//
//  GoOutSearchTableViewCell.m
//  MobileOffice
//
//  Created by jjkj on 16/12/14.
//  Copyright © 2016年 liaoningjujin. All rights reserved.
//

#import "GoOutSearchTableViewCell.h"

@implementation GoOutSearchTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier width:(CGFloat)width{
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.userInteractionEnabled=YES;
        
        _titleImageView=[MyControl creatImageViewWithFrame:CGRectMake(8, 13, 30, 30) imageName:@"k_dingwei@2x"];
        [self.contentView addSubview:_titleImageView];
        
        _addressLabel=[MyControl creatLabelWithFrame:CGRectMake(_titleImageView.x+_titleImageView.width+10, 8, width-(_titleImageView.x+_titleImageView.width+10), 20) text:@""];
        _addressLabel.font=[UIFont boldSystemFontOfSize:17];
        _addressLabel.font=FONT_17;
        [self.contentView addSubview:_addressLabel];
        
        _cityLabel=[MyControl creatLabelWithFrame:CGRectMake(_addressLabel.x, _addressLabel.y+_addressLabel.height, _addressLabel.width, 20) text:@""];
        _cityLabel.textColor=[UIColor lightGrayColor];
        _cityLabel.font=FONT_12;
        [self.contentView addSubview:_cityLabel];
        
        UILabel *line=[[UILabel alloc]initWithFrame:CGRectMake(0, 55, width, 1)];
        line.backgroundColor=BACKCOLOR_GRAY;
        [self.contentView addSubview:line];
    }
    return self;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
